package io.geekidea.boot.payment.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.geekidea.boot.area.mapper.AreaMapper;
import io.geekidea.boot.area.service.AreaService;
import io.geekidea.boot.payment.entity.Payment;
import io.geekidea.boot.payment.mapper.PaymentMapper;
import io.geekidea.boot.payment.service.PaymentService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {

    @Resource
    private PaymentMapper paymentMapper;

    @Override
    public Boolean delById(Integer id) {
        return paymentMapper.delByIdInt(id)>0;
    }
}
